package com.github.data_manage.dao

import com.github.data_manage.domain.po.Persons
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.jpa.repository.Query

/**
 *@author CHN
 *@since 2024-08-07 22:07
 */
interface PersonsDao : BaseDao<Persons> {
    @Modifying
    @Query("update Persons set currentCompany = :companyName where currentCompanyId = :companyId")
    fun updateCurrentCompanyNameByCompanyId(companyId: Int, companyName: String)


}